QT       += core gui
greaterThan(QT_MAJOR_VERSION, 5): QT += core5compat  # 兼容QT5内的东西
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    algorithmstrategy.cpp \
    main.cpp \
    mainwindow.cpp \
    mygraphicsview.cpp \
    roi.cpp \
    taskitem.cpp \
    taskthread.cpp \
    taskwindow.cpp \
    treepictool.cpp

HEADERS += \
    algorithmstrategy.h \
    mainwindow.h \
    mygraphicsview.h \
    roi.h \
    taskitem.h \
    taskthread.h \
    taskwindow.h \
    treepictool.h

FORMS += \
    mainwindow.ui \
    taskitem.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../OpenCV/opencv/build/x64/vc15/lib/ -lopencv_world455
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../OpenCV/opencv/build/x64/vc15/lib/ -lopencv_world455d

INCLUDEPATH += $$PWD/../../../OpenCV/opencv/build/include
DEPENDPATH += $$PWD/../../../OpenCV/opencv/build/include

RESOURCES += \
    resource.qrc
